﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CarShop.Domain.Entities;

namespace CarShop.Services.Contracts.Interfaces
{
    public interface IOrderService
    {
        IEnumerable<Order> GetOrders(Func<Order, bool> predicate, int page, int countOnPage, out int totalPages);
        bool AddOrder(Order order);
        bool UpdateOrder(Order order);
        Order GetOrder(int id);
        Order GetOrderWithAllInfo(int id);
    }
}
